package com.niguang.work.labour.api.vo;

import com.alibaba.fastjson.JSONArray;
import lombok.Data;

@Data
public class LaborListVo {

    private Long id;

    private Long userId;

    private String userName;

    private Integer age;

    private String userIdCard;

    private String userPhone;

    private Long siteId;

    private String siteName;


    private String bzName;

    private Long workTypeId;

    private String workTypeName;

    private Integer delFlag;

    private String delText;

    private String createTime;

    private Object urlList;

    private String bindType;

    public String getBindType() {
        if (urlList != null && urlList != "") {
            return "已签";
        }
        return "未签";
    }


    public Object getUrlList() {
        if (urlList != null) {
            return JSONArray.parse(urlList.toString());
        }
        return urlList;
    }
}
